package com.djhu.lock;

/**
 * Created by zw on 2017/12/13.
 */
public interface DistributedLock {
    public boolean trylock();

    public boolean trylock(long time) throws InterruptedException;


    public boolean trylock(String key);

    public boolean trylock(String key, long time) throws InterruptedException;

    public boolean unlock();

    public boolean unlock(String key);

}
